home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / MPW IIGS Interfaces / AIIGSIncludes / E16.GSOS < prev    next >
Encoding:
Text File  |  1990-04-03  |  6.2 KB  |  138 lines  |  [TEXT/MPS ]

  1. ; File:  E16.GSOS
  2. ;
  3. ;
  4. ; Copyright Apple Computer, Inc. 1986-90
  5. ; All Rights Reserved
  6. ;
  7. ;
  8. readEnableAllowWrite EQU $0000
  9. readEnable EQU $0001
  10. writeEnable EQU $0002
  11. readWriteEnable EQU $0003
  12. fileInvisible EQU $0004  ; Invisible bit
  13. backupNeeded EQU $0020  ; backup needed bit: CreateRec/ OpenRec access  field. (Must be 0 in requestAccess field )
  14. renameEnable EQU $0040  ; rename enable bit: CreateRec/ OpenRec access and requestAccess fields
  15. destroyEnable EQU $0080  ; destroy enable  bit: CreateRec/ OpenRec access and requestAccess fields
  16. startPlus EQU $0000  ; base -> setMark = displacement
  17. eofMinus EQU $0001  ; base -> setMark = eof - displacement
  18. markPlus EQU $0002  ; base -> setMark = mark + displacement
  19. markMinus EQU $0003  ; base -> setMark = mark - displacement
  20. cacheOff EQU $0000  ; do not cache blocks invloved in this read
  21. cacheOn EQU $0001  ; cache blocks invloved in this read if possible
  22. badSystemCall EQU $0001  ; bad system call number
  23. invalidPcount EQU $0004  ; invalid parameter count
  24. gsosActive EQU $0007  ; GS/OS already active
  25.     IF &FINDSYM(&SYSGLOBAL,'DEVNOTFOUND')=0 AND &FINDSYM(&SYSGLOBAL,'devnotfound')=0 THEN  ; device not found
  26. devNotFound EQU $10
  27.     ENDIF
  28. invalidDevNum EQU $11  ; invalid device number
  29. drvrBadReq EQU $20  ; bad request or command
  30. drvrBadCode EQU $0021  ; bad control or status code
  31. drvrBadParm EQU $0022  ; bad call parameter
  32. drvrNotOpen EQU $0023  ; character device not open
  33. drvrPriorOpen EQU $0024  ; character device already open
  34. irqTableFull EQU $0025  ; interrupt table full
  35. drvrNoResrc EQU $0026  ; resources not available
  36. drvrIOError EQU $0027  ; I/O error
  37. drvrNoDevice EQU $0028  ; device not connected
  38. drvrBusy EQU $0029  ; call aborted; driver is busy
  39. drvrWrtProt EQU $002B  ; device is write protected
  40. drvrBadCount EQU $002C  ; invalid byte count
  41. drvrBadBlock EQU $002D  ; invalid block address
  42. drvrDiskSwitch EQU $002E  ; disk has been switched
  43. drvrOffLine EQU $002F  ; device off line/ no media present
  44. badPathSyntax EQU $0040  ; invalid pathname syntax
  45. invalidRefNum EQU $0043  ; invalid reference number
  46.     IF &FINDSYM(&SYSGLOBAL,'PATHNOTFOUND')=0 AND &FINDSYM(&SYSGLOBAL,'pathnotfound')=0 THEN  ; subdirectory does not exist
  47. pathNotFound EQU $44
  48.     ENDIF
  49. volNotFound EQU $0045  ; volume not found
  50.     IF &FINDSYM(&SYSGLOBAL,'FILENOTFOUND')=0 AND &FINDSYM(&SYSGLOBAL,'filenotfound')=0 THEN  ; file not found
  51. fileNotFound EQU $0046
  52.     ENDIF
  53. dupPathname EQU $0047  ; create or rename with existing name
  54. volumeFull EQU $0048  ; volume full error
  55. volDirFull EQU $0049  ; volume directory full
  56. badFileFormat EQU $004A  ; version error (incompatible file format)
  57.     IF &FINDSYM(&SYSGLOBAL,'BADSTORETYPE')=0 AND &FINDSYM(&SYSGLOBAL,'badstoretype')=0 THEN  ; unsupported (or incorrect) storage type
  58. badStoreType EQU $004B
  59.     ENDIF
  60.     IF &FINDSYM(&SYSGLOBAL,'EOFENCOUNTERED')=0 AND &FINDSYM(&SYSGLOBAL,'eofencountered')=0 THEN  ; end-of-file encountered
  61. eofEncountered EQU $004C
  62.     ENDIF
  63. outOfRange EQU $004D  ; position out of range
  64. invalidAccess EQU $004E  ; access not allowed
  65. buffTooSmall EQU $004F  ; buffer too small
  66. fileBusy EQU $0050  ; file is already open
  67. dirError EQU $0051  ; directory error
  68. unknownVol EQU $0052  ; unknown volume type
  69.     IF &FINDSYM(&SYSGLOBAL,'PARAMRANGEERR')=0 AND &FINDSYM(&SYSGLOBAL,'paramrangeerr')=0 THEN  ; parameter out of range
  70. paramRangeErr EQU $0053
  71.     ENDIF
  72. outOfMem EQU $0054  ; out of memory
  73. dupVolume EQU $0057  ; duplicate volume name
  74. notBlockDev EQU $0058  ; not a block device
  75.     IF &FINDSYM(&SYSGLOBAL,'INVALIDLEVEL')=0 AND &FINDSYM(&SYSGLOBAL,'invalidlevel')=0 THEN  ; specifield level outside legal range
  76. invalidLevel EQU $0059
  77.     ENDIF
  78. damagedBitMap EQU $005A  ; block number too large
  79. badPathNames EQU $005B  ; invalid pathnames for ChangePath
  80. notSystemFile EQU $005C  ; not an executable file
  81. osUnsupported EQU $005D  ; Operating System not supported
  82.     IF &FINDSYM(&SYSGLOBAL,'STACKOVERFLOW')=0 AND &FINDSYM(&SYSGLOBAL,'stackoverflow')=0 THEN  ; too many applications on stack
  83. stackOverflow EQU $005F
  84.     ENDIF
  85. dataUnavail EQU $0060  ; Data unavailable
  86. endOfDir EQU $0061  ; end of directory has been reached
  87. invalidClass EQU $0062  ; invalid FST call class
  88. resForkNotFound EQU $0063  ; file does not contain required resource
  89. invalidFSTID EQU $0064  ; error - FST ID is invalid
  90. devNameErr EQU $0067  ; device exists with same name as replacement name
  91. resExistsErr EQU $0070  ; cannot expand file, resource already exists
  92. resAddErr EQU $0071  ; cannot add resource fork to this type file
  93. proDOSFSID EQU $0001  ; ProDOS/SOS 
  94. dos33FSID EQU $0002  ; DOS 3.3
  95. dos32FSID EQU $0003  ; DOS 3.2
  96. dos31FSID EQU $0003  ; DOS 3.1
  97. appleIIPascalFSID EQU $0004  ; Apple II Pascal
  98. mfsFSID EQU $0005  ; Macintosh (flat file system)
  99. hfsFSID EQU $0006  ; Macintosh (hierarchical file system)
  100. lisaFSID EQU $0007  ; Lisa file system
  101. appleCPMFSID EQU $0008  ; Apple CP/M
  102. charFSTFSID EQU $0009  ; Character FST
  103. msDOSFSID EQU $000A  ; MS/DOS
  104. highSierraFSID EQU $000B  ; High Sierra
  105. iso9660FSID EQU $000C  ; ISO 9660
  106. appleShareFSID EQU $000D  ; ISO 9660
  107. characterFST EQU $4000  ; character FST
  108. ucFST EQU $8000  ; SCM should upper case pathnames before passing them to the FST
  109. onStack EQU $8000  ; place state information about quitting program on the quit return stack
  110. restartable EQU $4000  ; the quitting program is capable of being restarted from its dormant memory
  111. seedling EQU $0001  ; standard file with seedling structure
  112. standardFile EQU $0001  ; standard file type (no resource fork)
  113. sapling EQU $0002  ; standard file with sapling structure
  114. tree EQU $0003  ; standard file with tree structure
  115. pascalRegion EQU $0004  ; UCSD Pascal region on a partitioned disk
  116. extendedFile EQU $0005  ; extended file type (with resource fork)
  117. directoryFile EQU $000D  ; volume directory or subdirectory file
  118. minorRelNumMask EQU $00FF  ; minor release number
  119. majorRelNumMask EQU $7F00  ; major release number
  120. finalRelNumMask EQU $8000  ; final release number
  121. isFileExtended EQU $8000  ; GetDirEntryGS
  122. resetDevice EQU $0000
  123. formatDevice EQU $0001
  124. eject EQU $0002
  125. setConfigParameters EQU $0003
  126. setWaitStatus EQU $0004
  127. setFormatOptions EQU $0005
  128. assignPartitionOwner EQU $0006
  129. armSignal EQU $0007
  130. disarmSignal EQU $0008
  131. setPartitionMap EQU $0009
  132. PrefixRecGS RECORD 0 ; GSOS
  133. pCount  DS.B 2 ; Word - 
  134. prefixNum  DS.B 2 ; Word - 
  135. prefix  DS.B 4 ; ResultBuf255Ptr or GSString255Ptr - 
  136.   ENDR
  137.  
  138.